package com.weiyi.servlet05;

import java.util.HashMap;
import java.util.Map;

public class HelloModel {
	private Map<String,String> messages = new HashMap<>();
	
	
	public HelloModel() {
		messages.put("weiyi", "Hello");
		messages.put("Elodie", "Welcome");
		messages.put("momor", "Hi");
	}


	public String doHello(String user) {
		String message = messages.get(user);		
		return message + "," + user + "!" ;	
	}

}
